package cn.edu.lzzy.mypractices.service;

import cn.edu.lzzy.mypractices.constant.Messages;
import cn.edu.lzzy.mypractices.entity.Chapter;
import cn.edu.lzzy.mypractices.entity.Course;

import java.util.List;
import java.util.UUID;

public interface ChapterService {
    List<Chapter> getByCourse(Course course);
    List<Chapter> getByCourse(Course course, int page, int size);
    List<Chapter> getByCourse(UUID course_id);
    List<Chapter> getByCourse(UUID course_id, int page, int size);

    int count(Course id);
    int count(UUID id);

    Chapter getByChapterId(UUID id);
    Chapter add(Chapter chapter);
    Chapter update(Chapter chapter, String token);
    Messages remove(UUID id, String token);
}
